import { defineStore } from 'pinia'
import { loginApi } from '@/api/login.js'

export const useWebsiteStore = defineStore('website', {
  state: () => ({
    info: {}
  }),
  getters: {
    getInfo(state) {
      return state.info
    }
  },
  actions: {
    async init() {
      this.info = await loginApi.getWebsite()
    }
  }
})
